#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

class Solution {
public:
  vector<vector<int>> fourSum(vector<int> &nums, int target) {
    vector<vector<int>> vv;
    vector<int> v;
    int avg = target / 4;
    for (int i = 0; i < nums.size(); i++) {
      nums[i] -= avg;
      if (nums[i] == 0) {
        
      }
    }

    int len = 0;
    sort(nums.begin(), nums.end());
    for (int i = 0; i < nums.size(); i++) {
      
    }
    nums.erase(unique(nums.begin(), nums.end()), nums.end());
    for (int i = 0, j = nums.size() - 1; i < j;) {
      if (nums[i] + nums[j] == 0) {
        v.push_back(nums[j]);
        i++, j--;
      } else if (nums[i] + nums[j] > 0) {
        j--;
      } else {
        i++;
      }
    }
  }
};

int main() { return 0; }